using UnityEngine;

public class VehicleSettings : MonoBehaviour
{
	public float speed;

	public float acceleration;

	public float brakes;

	public void SetDefaultSettings(int i)
	{
		PlayerPrefs.SetFloat("vehicle_" + i + "_speed", speed);
		PlayerPrefs.SetFloat("vehicle_" + i + "_acceleration", acceleration);
		PlayerPrefs.SetFloat("vehicle_" + i + "_brakes", brakes);
		if (i == 0)
		{
			PlayerPrefs.SetInt("vehicle_" + i + "_unlocked", 1);
		}
		else
		{
			PlayerPrefs.SetInt("vehicle_" + i + "_unlocked", 0);
		}
	}
}
